﻿using ManaMaple.DB.IRepository;
using ManaMaple.DB.Models;
using ManaMaple.Entity.Sys;
using ManaMaple.Kit.Models;
using ManaMaple.Models.User.Request;
using ManaMaple.Models.User.VM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManaMaple.IRepository.Sys
{
    /// <summary>
    /// 用户信息仓储接口
    /// </summary>
    public interface ISysUsersRepository : IFoundRepository<sys_user>
    {
        /// <summary>
        /// 修改用户最后登陆时间
        /// </summary>
        /// <returns></returns>
        Task<bool> UpdUserLasLoginTime(int userId);



        #region 用户管理  
        /// <summary>
        /// 用户禁用或启用
        /// </summary>
        /// <returns></returns>
        Task<bool> EnableUser(OperateUserRequest dto);
        #endregion
    }
}
